diff --git a/swh/web/assets/src/bundles/browse/browse.css b/swh/web/assets/src/bundles/browse/browse.css --- a/swh/web/assets/src/bundles/browse/browse.css +++ b/swh/web/assets/src/bundles/browse/browse.css @@ -130,20 +130,3 @@ td.swh-branch-date { min-width: 250px; } - -td.swh-branch-name a, -td.swh-branch-message a, -td.swh-branch-date a { - text-decoration: none; -} - -td.swh-release-name a, -td.swh-release-message a, -td.swh-release-date a { - text-decoration: none; -} - -tr.swh-directory-entry a, -tr.swh-search-result-entry a { - text-decoration: none; -} diff --git a/swh/web/assets/src/bundles/browse/origin-search.js b/swh/web/assets/src/bundles/browse/origin-search.js --- a/swh/web/assets/src/bundles/browse/origin-search.js +++ b/swh/web/assets/src/bundles/browse/origin-search.js @@ -35,10 +35,10 @@ for (let i = localOffset; i < localOffset + perPage && i < data.length; ++i) { let elem = data[i]; let browseUrl = Urls.browse_origin(elem.url); - let tableRow = ``; - tableRow += `${elem.type}`; + let tableRow = ``; + tableRow += `${elem.type}`; tableRow += `${elem.url}`; - tableRow += ``; + tableRow += ``; tableRow += ''; table.append(tableRow); // get async latest visit snapshot and update visit status icon @@ -59,7 +59,6 @@ }); } fixTableRowsStyle(); - swh.webapp.initTableRowLinks('tr.swh-search-result-entry'); } else { $('#swh-origin-search-results').hide(); $('#swh-no-result').text('No origins matching the search criteria were found.'); diff --git a/swh/web/assets/src/bundles/browse/snapshot-navigation.css b/swh/web/assets/src/bundles/browse/snapshot-navigation.css --- a/swh/web/assets/src/bundles/browse/snapshot-navigation.css +++ b/swh/web/assets/src/bundles/browse/snapshot-navigation.css @@ -24,12 +24,6 @@ background-color: #e8e8e8; } -.nav a, -.swh-branch a, -.swh-release a { - outline: none; -} - .swh-branch a:hover, .swh-release a:hover { text-decoration: none; diff --git a/swh/web/assets/src/bundles/revision/log-utils.js b/swh/web/assets/src/bundles/revision/log-utils.js --- a/swh/web/assets/src/bundles/revision/log-utils.js +++ b/swh/web/assets/src/bundles/revision/log-utils.js @@ -10,7 +10,6 @@ } export function initRevisionsLog() { - swh.webapp.initTableRowLinks('tr.swh-revision-log-entry'); $(document).ready(() => { let urlParams = new URLSearchParams(window.location.search); let revsOrderingType = urlParams.get('revs_ordering'); diff --git a/swh/web/assets/src/bundles/webapp/webapp-utils.js b/swh/web/assets/src/bundles/webapp/webapp-utils.js --- a/swh/web/assets/src/bundles/webapp/webapp-utils.js +++ b/swh/web/assets/src/bundles/webapp/webapp-utils.js @@ -160,14 +160,6 @@ return swhObjectIcons[swhObjectType]; } -export function initTableRowLinks(trSelector) { - $(trSelector).on('click', function() { - window.location = $(this).data('href'); - return false; - }); - $('td > a').on('click', function(e) { e.stopPropagation(); }); -} - let reCaptchaActivated; export function setReCaptchaActivated(activated) { diff --git a/swh/web/assets/src/bundles/webapp/webapp.css b/swh/web/assets/src/bundles/webapp/webapp.css --- a/swh/web/assets/src/bundles/webapp/webapp.css +++ b/swh/web/assets/src/bundles/webapp/webapp.css @@ -17,8 +17,8 @@ padding-bottom: 120px; } -a { - border-bottom-style: none; +a:active, +a.active { outline: none; } @@ -100,7 +100,6 @@ .swh-web-app-link a { text-decoration: none; - outline: none; border: none; } @@ -463,10 +462,6 @@ border: none; } -tr.swh-tr-hover-highlight { - cursor: pointer; -} - tr.swh-tr-hover-highlight:hover td { background: #ededed; } diff --git a/swh/web/assets/src/utils/showdown.css b/swh/web/assets/src/utils/showdown.css --- a/swh/web/assets/src/utils/showdown.css +++ b/swh/web/assets/src/utils/showdown.css @@ -6,7 +6,6 @@ */ .swh-showdown a { - outline: none; border: none; } diff --git a/swh/web/templates/api/endpoints.html b/swh/web/templates/api/endpoints.html --- a/swh/web/templates/api/endpoints.html +++ b/swh/web/templates/api/endpoints.html @@ -54,8 +54,7 @@ {% for route, doc in doc_routes %} - + {% if doc.tags|length > 0 %} {% url doc.route_view_name %} @@ -89,7 +88,6 @@ - {% else %} The list of branches is empty ! {% endif %} diff --git a/swh/web/templates/browse/releases.html b/swh/web/templates/browse/releases.html --- a/swh/web/templates/browse/releases.html +++ b/swh/web/templates/browse/releases.html @@ -23,7 +23,7 @@ {% for release in displayed_releases %} - + {{ release.name }} @@ -35,23 +35,16 @@ - - {{ release.message }} - + {{ release.message }} - - {{ release.date }} - + {{ release.date }} {% endfor %} - {% else %} The list of releases is empty ! {% endif %} diff --git a/swh/web/templates/browse/revision-log.html b/swh/web/templates/browse/revision-log.html --- a/swh/web/templates/browse/revision-log.html +++ b/swh/web/templates/browse/revision-log.html @@ -63,31 +63,23 @@ {% for rev in revision_log %} - + {{ rev.id }} - - {{ rev.author }} - + {{ rev.author }} - - {{ rev.date }} - + {{ rev.date }} - - {{ rev.message }} - + {{ rev.message }} - - {{ rev.commit_date }} - + {{ rev.commit_date }} {% endfor %} diff --git a/swh/web/templates/includes/directory-display.html b/swh/web/templates/includes/directory-display.html --- a/swh/web/templates/includes/directory-display.html +++ b/swh/web/templates/includes/directory-display.html @@ -19,7 +19,7 @@ {% for d in dirs %} - + @@ -27,18 +27,14 @@ - - {{ d.perms }} - + {{ d.perms }} - - {% endfor %} {% for f in files %} - + @@ -46,14 +42,10 @@ - - {{ f.perms }} - + {{ f.perms }} - - {{ f.length }} - + {{ f.length }} {% endfor %} @@ -61,9 +53,6 @@
- {% elif dirs|length == 0 and files|length == 0 %} Directory is empty {% endif %} \ No newline at end of file